<%@ page contentType="text/html;charset=UTF-8" %>﻿
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
</head>
<body>
<h1>欢迎来到主页<h1>
user:view,user:edit,sys:monitor,carwler:manager,carwler:monitor<br/>
<shiro:hasPermission name="user:view">
 	<h1>拥有user:view权限</h1>
</shiro:hasPermission>
<shiro:hasPermission name="user:edit">
 	<h1>拥有user:edit权限</h1>
</shiro:hasPermission>
<shiro:hasPermission name="user:abc">
 	<h1>拥有user:abc权限</h1>
</shiro:hasPermission>
</body>
</html>